package com.chouxiaozi.wechatpublic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信公众号菜单
 * </p>
 *
 * @author ws
 * @since 2019-12-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_wechat_custom_menu")
public class WechatCustomMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 菜单父id
     */
    private Integer parentId;

    /**
     * 微信组id
     */
    private Integer wechatGroupId;

    /**
     * 菜单标题
     */
    private String menuName;

    /**
     * 菜单类型，1标签，2命令菜单，3链接菜单
     */
    private String menuType;

    private Integer menuOrder;

    /**
     * 菜单KEY
     */
    private String menuKey;

    /**
     * 菜单链接
     */
    private String url;

    /**
     * 0表示平台所有，1表示网吧自有
     */
    private Integer owerType;

    private LocalDateTime createTime;

    private Integer updateId;

    private LocalDateTime updateTime;

    /**
     * 0正常 -1删除
     */
    private Integer deleteState;

    private String groupCode;

    /**
     * 0:不需要授权  1：菜单url必须经过微信授权OAuth2User
     */
    private Integer isGrant;


}
